const express = require('express');
const app = express();
let cbArr = [];
cbArr.push((req, res, next) => {
    res.test= '13';
    next();
});
cbArr.push((req, res, next) => {
    req.test= '14';
    next();
});
cbArr.push((req, res) => {
   res.send(req.test)
});
app.get('/', cbArr).listen(3000, ()=>{
    console.log('服务启动成功')
});